package com.activiti;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.Deployment;
import org.junit.Test;

/**
 * @description:
 * @author: guoc
 * @createDate: 2020/9/10 9:22
 */
public class testDeployment {
    
    @Test
    public void testDepoy (){
        ProcessEngine defaultProcessEngine = ProcessEngines.getDefaultProcessEngine();
        RepositoryService repositoryService = defaultProcessEngine.getRepositoryService();
        Deployment deploy = repositoryService.createDeployment().addClasspathResource("designer/test.bpmn")
                .addClasspathResource("designer/test.png").name("测试中文流程").deploy();

        System.out.println("流程"+deploy.getName());

    }
    
}
